<?php defined("MAIN_DIR") or die("No direct access"); ?>

<table cellpadding='5' cellspacing='0'>
	<tr>
		<td width="80px">Валюта</td>
		<td width="330px">Сумма</td>
		<td width="200px">Срок (месяцы)</td>
		<td width="200px">Ставка (%)</td>
	</tr>	
	<tr id="RUB">
		<td>
			<input type='checkbox' name='RUB' id='check_RUB' <?php
			if (isset($_POST['RUB']) || !isset($_POST['action']))
				echo " checked='checked'";?> /> RUB</td>
		<td>от <input style='width:130px' type='text' name='RUB_sum_low' <?php
				if (isset($_POST['action']) && !isset($_POST['RUB'])) echo "disabled='disabled'";
				if (isset($_POST['RUB_sum_low'])) echo "value='$_POST[RUB_sum_low]'"; ?> />
			до <input style='width:130px' type='text' name='RUB_sum_high' <?php
				if (isset($_POST['action']) && !isset($_POST['RUB'])) echo "disabled='disabled'";
				if (isset($_POST['RUB_sum_high'])) echo "value='$_POST[RUB_sum_high]'"; ?> /></td>
		<td>от <input style='width:50px' type='text' name='RUB_period_low' <?php
				if (isset($_POST['action']) && !isset($_POST['RUB'])) echo "disabled='disabled'";
				if (isset($_POST['RUB_period_low'])) echo "value='$_POST[RUB_period_low]'"; ?> />
			до <input style='width:50px' type='text' name='RUB_period_high' <?php
				if (isset($_POST['action']) && !isset($_POST['RUB'])) echo "disabled='disabled'";
				if (isset($_POST['RUB_period_high'])) echo "value='$_POST[RUB_period_high]'"; ?> /></td>
		<td>от <input style='width:50px' type='text' name='RUB_rate_low' <?php
				if (isset($_POST['action']) && !isset($_POST['RUB'])) echo "disabled='disabled'";
				if (isset($_POST['RUB_rate_low'])) echo "value='$_POST[RUB_rate_low]'"; ?> />
			до <input style='width:50px' type='text' name='RUB_rate_high' <?php
				if (isset($_POST['action']) && !isset($_POST['RUB'])) echo "disabled='disabled'";
				if (isset($_POST['RUB_rate_high'])) echo "value='$_POST[RUB_rate_high]'"; ?> /></td>
	</tr>
	<tr id="USD">
		<td>
			<input type='checkbox' name='USD' id='check_USD' <?php
			if (isset($_POST['USD']) || !isset($_POST['action']))
				echo " checked='checked'";?> /> USD</td>
		<td>от <input style='width:130px' type='text' name='USD_sum_low' <?php
				if (isset($_POST['action']) && !isset($_POST['USD'])) echo "disabled='disabled'";
				if (isset($_POST['USD_sum_low'])) echo "value='$_POST[USD_sum_low]'"; ?> />
			до <input style='width:130px' type='text' name='USD_sum_high' <?php
				if (isset($_POST['action']) && !isset($_POST['USD'])) echo "disabled='disabled'";
				if (isset($_POST['USD_sum_high'])) echo "value='$_POST[USD_sum_high]'"; ?> /></td>
		<td>от <input style='width:50px' type='text' name='USD_period_low' <?php
				if (isset($_POST['action']) && !isset($_POST['USD'])) echo "disabled='disabled'";
				if (isset($_POST['USD_period_low'])) echo "value='$_POST[USD_period_low]'"; ?> />
			до <input style='width:50px' type='text' name='USD_period_high' <?php
				if (isset($_POST['action']) && !isset($_POST['USD'])) echo "disabled='disabled'";
				if (isset($_POST['USD_period_high'])) echo "value='$_POST[USD_period_high]'"; ?> /></td>
		<td>от <input style='width:50px' type='text' name='USD_rate_low' <?php
				if (isset($_POST['action']) && !isset($_POST['USD'])) echo "disabled='disabled'";
				if (isset($_POST['USD_rate_low'])) echo "value='$_POST[USD_rate_low]'"; ?> />
			до <input style='width:50px' type='text' name='USD_rate_high' <?php
				if (isset($_POST['action']) && !isset($_POST['USD'])) echo "disabled='disabled'";
				if (isset($_POST['USD_rate_high'])) echo "value='$_POST[USD_rate_high]'"; ?> /></td>
	</tr>
	<tr id="EUR">
		<td>
			<input type='checkbox' name='EUR' id='check_EUR' <?php
			if (isset($_POST['EUR']) || !isset($_POST['action']))
				echo " checked='checked'";?> /> EUR</td>
		<td>от <input style='width:130px' type='text' name='EUR_sum_low' <?php
				if (isset($_POST['action']) && !isset($_POST['EUR'])) echo "disabled='disabled'";
				if (isset($_POST['EUR_sum_low'])) echo "value='$_POST[EUR_sum_low]'"; ?> />
			до <input style='width:130px' type='text' name='EUR_sum_high' <?php
				if (isset($_POST['action']) && !isset($_POST['EUR'])) echo "disabled='disabled'";
				if (isset($_POST['EUR_sum_high'])) echo "value='$_POST[EUR_sum_high]'"; ?> /></td>
		<td>от <input style='width:50px' type='text' name='EUR_period_low' <?php
				if (isset($_POST['action']) && !isset($_POST['EUR'])) echo "disabled='disabled'";
				if (isset($_POST['EUR_period_low'])) echo "value='$_POST[EUR_period_low]'"; ?> />
			до <input style='width:50px' type='text' name='EUR_period_high' <?php
				if (isset($_POST['action']) && !isset($_POST['EUR'])) echo "disabled='disabled'";
				if (isset($_POST['EUR_period_high'])) echo "value='$_POST[EUR_period_high]'"; ?> /></td>
		<td>от <input style='width:50px' type='text' name='EUR_rate_low' <?php
				if (isset($_POST['action']) && !isset($_POST['EUR'])) echo "disabled='disabled'";
				if (isset($_POST['EUR_rate_low'])) echo "value='$_POST[EUR_rate_low]'"; ?> />
			до <input style='width:50px' type='text' name='EUR_rate_high' <?php
				if (isset($_POST['action']) && !isset($_POST['EUR'])) echo "disabled='disabled'";
				if (isset($_POST['EUR_rate_high'])) echo "value='$_POST[EUR_rate_high]'"; ?> /></td>
	</tr>
</table>